package top.itbook.util;

import java.security.Provider;

/**
 * 加密算法父类
 * 该类在V0.1版本中存粹的测试工具类，现在V0.2版本了，这个类也不需要了，但是还是留着给大家分析好了.
 * 废弃的类
 */
@Deprecated
public class Encryption extends Provider {
    /**
     * Constructs a provider with the specified name, version.txt string,
     * and information.
     *
     * <p>The version.txt string contains a version.txt number optionally followed
     * by other information separated by one of the characters of '+', '-'.
     * <p>
     * The format for the version.txt number is:
     *
     * <blockquote><pre>
     *     ^[0-9]+(\.[0-9]+)*
     * </pre></blockquote>
     *
     * <p>In order to return the version.txt number in a double, when there are
     * more than two components (separated by '.' as defined above), only
     * the first two components are retained. The resulting string is then
     * passed to {@link Double#valueOf(String)} to generate version.txt number,
     * i.e. {@link #getVersion}.
     * <p>If the conversion failed, value 0 will be used.
     *
     * @param name       提供商名称
     * @param versionStr 提供程序版本号
     * @param info       信息 - 提供商以及其服务的描述
     */
    @Deprecated
    protected Encryption(String name, String versionStr, String info) {
        super(name, versionStr, info);
    }

    @Override
    public String toString(){
        return super.toString();
    }

    @Override
    public String getName(){
        return super.getName();
    }

    @Override
    public String getVersionStr(){
        return super.getVersionStr();
    }

    @Override
    public String getInfo(){
        return super.getInfo();
    }
}
